package com.zpb.framework.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zpb.framework.domain.entity.Article;
import com.zpb.framework.domain.entity.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description:
 * @Author: zhaopengbo
 * @Date: 2025/9/7
 */
@Mapper
public interface ArticleMapper extends BaseMapper<Article> {
    int insertArticleTag(@Param("articleId") Long id, @Param("tags") List<Long> tags);
    List<Long> selectTagIdsByArticleId(@Param("articleId") Long articleId);
    int deleteArticleTagByArticleId(@Param("articleId") Long articleId);
}
